﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tzync
{
    public class RollbackFile
    {
        private string rbSource;    //location of rollback file
        private string rbDestination;   //location to rollback to
        private DateTime rbLastSyncTime;    //data last synced of file
        private long rbSize;    //size of file
        private int rbId;   //id of file
        private bool rbDone;    //whether rollback of this file is done
        private int rbVersion;  //version of this file

        //set methods
        public void SetSource(string newSource)
        {
            rbSource = newSource;
        }
        public void SetDestination(string newPath)
        {
            rbDestination = newPath;
        }
        public void SetSyncTime(DateTime newSyncTime)
        {
            rbLastSyncTime = newSyncTime;
        }
        public void SetSize(long newSize)
        {
            rbSize = newSize;
        }
        public void SetId(int newId)
        {
            rbId = newId;
        }
        public void SetIsDone(bool newDone)
        {
            rbDone = newDone;
        }
        public void SetVersion(int newVersion)
        {
            rbVersion = newVersion;
        }


        //Get methods
        public string GetSource()
        {
            return rbSource;
        }
        public string GetDestination()
        {
            return rbDestination;
        }
        public DateTime GetLastSyncTime()
        {
            return rbLastSyncTime;
        }
        public long GetSize()
        {
            return rbSize;
        }
        public int GetId()
        {
            return rbId;
        }
        public bool isDone()
        {
            return rbDone;
        }
        public int GetVersion()
        {
            return rbVersion;
        }

    }   //end of RollbackFile class
}   
